﻿using System;
using System.ServiceModel;
using CalculatorService;


  class Program
  {
    static void Main()
    {
      	// Create a ServiceHost for the CalculatorService type.
    	using (ServiceHost serviceHost = 
            new ServiceHost(typeof(CalculatorServiceImp)))
    	{
        // Open the ServiceHost and start listening for messages.
        	serviceHost.Open();

        // The service can now be accessed.
        	Console.WriteLine("The service is ready.");
        	Console.WriteLine("Press <ENTER> to terminate service.");
        	Console.WriteLine();
        	Console.ReadLine();
	    
		}	    
	}
  }
